import { createSlice } from '@reduxjs/toolkit'

const testSlice = createSlice({
    name:"test",
    initialState:{
        count:100
    },
    reducers:{
        increment(state,action){
            console.log("inrement",action)
            state.count += action.payload;
        }
    }
});
export const {increment} = testSlice.actions;
export default testSlice.reducer;